<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Gloze: Mixed Content</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Gloze
   &#160;<span id="projectnumber">1.01-beta2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">Mixed Content </div>  </div>
</div>
<div class="contents">
<div class="textblock"><p>Mixed content, that is text interleaved with markup, also requires ordering. The following example includes combined text and markup. Note that the text content of an element appears as an rdf:value.</p>
<div class="fragment"><pre class="fragment">&lt;?xml version=<span class="stringliteral">&quot;1.0&quot;</span>?&gt;
&lt;letterBody&gt;
&lt;salutation&gt;Dear Mr.&lt;name&gt;Robert Smith&lt;/name&gt;.&lt;/salutation&gt;
Your order of &lt;quantity&gt;1&lt;/quantity&gt; &lt;productName&gt;Baby
Monitor&lt;/productName&gt; shipped from our warehouse on
&lt;shipDate&gt;1999-05-21&lt;/shipDate&gt;. ....
&lt;/letterBody&gt;


</pre></div> <div class="fragment"><pre class="fragment">&lt;schema xmlns=<span class="stringliteral">&quot;http://www.w3.org/2001/XMLSchema&quot;</span>
        xmlns:xsd=<span class="stringliteral">&quot;http://www.w3.org/2001/XMLSchema&quot;</span>&gt;

&lt;xsd:element name=<span class="stringliteral">&quot;letterBody&quot;</span>&gt;
  &lt;xsd:complexType mixed=<span class="stringliteral">&quot;true&quot;</span>&gt;
    &lt;xsd:sequence&gt;
      &lt;xsd:element name=<span class="stringliteral">&quot;salutation&quot;</span>&gt;
        &lt;xsd:complexType mixed=<span class="stringliteral">&quot;true&quot;</span>&gt;
          &lt;xsd:sequence&gt;
            &lt;xsd:element name=<span class="stringliteral">&quot;name&quot;</span> type=<span class="stringliteral">&quot;xsd:string&quot;</span>/&gt;
          &lt;/xsd:sequence&gt;
        &lt;/xsd:complexType&gt;
      &lt;/xsd:element&gt;
      &lt;xsd:element name=<span class="stringliteral">&quot;quantity&quot;</span>    type=<span class="stringliteral">&quot;xsd:positiveInteger&quot;</span>/&gt;
      &lt;xsd:element name=<span class="stringliteral">&quot;productName&quot;</span> type=<span class="stringliteral">&quot;xsd:string&quot;</span>/&gt;
      &lt;xsd:element name=<span class="stringliteral">&quot;shipDate&quot;</span>    type=<span class="stringliteral">&quot;xsd:date&quot;</span> minOccurs=<span class="stringliteral">&quot;0&quot;</span>/&gt;
      &lt;!-- etc. --&gt;
    &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;
&lt;/xsd:element&gt;

&lt;/schema&gt;
</pre></div> <div class="fragment"><pre class="fragment">@prefix ns1:     &lt;http:<span class="comment">//example.org/def/&gt; .</span>
@prefix xsd_:    &lt;http:<span class="comment">//www.w3.org/2001/XMLSchema#&gt; .</span>
@prefix xsd:     &lt;http:<span class="comment">//www.w3.org/2001/XMLSchema&gt; .</span>
@prefix rdf:     &lt;http:<span class="comment">//www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .</span>

&lt;http:<span class="comment">//example.org/mix.xml&gt;</span>
      ns1:letterBody _:b1 .

_:b2  a       rdf:Seq ;
      rdf:_1  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;Dear Mr.&quot;</span> ;
                rdf:predicate rdf:value ;
                rdf:subject _:b2
              ] ;
      rdf:_2  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;Robert Smith&quot;</span>^^xsd_:string ;
                rdf:predicate ns1:name ;
                rdf:subject _:b2
              ] ;
      rdf:_3  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;.&quot;</span> ;
                rdf:predicate rdf:value ;
                rdf:subject _:b2
              ] ;
      rdf:value <span class="stringliteral">&quot;.&quot;</span> , <span class="stringliteral">&quot;Dear Mr.&quot;</span> ;
      ns1:name <span class="stringliteral">&quot;Robert Smith&quot;</span>^^xsd_:<span class="keywordtype">string</span> .

_:b1  a       rdf:Seq ;
      rdf:_1  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> _:b2 ;
                rdf:predicate ns1:salutation ;
                rdf:subject _:b1
              ] ;
      rdf:_2  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;Your order of&quot;</span> ;
                rdf:predicate rdf:value ;
                rdf:subject _:b1
              ] ;
      rdf:_3  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;1&quot;</span>^^xsd_:positiveInteger ;
                rdf:predicate ns1:quantity ;
                rdf:subject _:b1
              ] ;
      rdf:_4  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;&quot;</span><span class="stringliteral">&quot;Baby</span>
<span class="stringliteral">Monitor&quot;</span><span class="stringliteral">&quot;&quot;</span>^^xsd_:string ;
                rdf:predicate ns1:productName ;
                rdf:subject _:b1
              ] ;
      rdf:_5  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;shipped from our warehouse on&quot;</span> ;
                rdf:predicate rdf:value ;
                rdf:subject _:b1
              ] ;
      rdf:_6  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;1999-05-21&quot;</span>^^xsd_:date ;
                rdf:predicate ns1:shipDate ;
                rdf:subject _:b1
              ] ;
      rdf:_7  [ a       rdf:Statement ;
                rdf:<span class="keywordtype">object</span> <span class="stringliteral">&quot;. ....&quot;</span> ;
                rdf:predicate rdf:value ;
                rdf:subject _:b1
              ] ;
      rdf:value <span class="stringliteral">&quot;. ....&quot;</span> , <span class="stringliteral">&quot;Your order of&quot;</span> , <span class="stringliteral">&quot;shipped from our warehouse on&quot;</span> ;
      ns1:productName <span class="stringliteral">&quot;&quot;</span><span class="stringliteral">&quot;Baby</span>
<span class="stringliteral">Monitor&quot;</span><span class="stringliteral">&quot;&quot;</span>^^xsd_:string ;
      ns1:quantity <span class="stringliteral">&quot;1&quot;</span>^^xsd_:positiveInteger ;
      ns1:salutation _:b2 ;
      ns1:shipDate <span class="stringliteral">&quot;1999-05-21&quot;</span>^^xsd_:date .
</pre></div> </div></div>


<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 15 2011 22:13:50 for Gloze by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
